package com.lumm.model;

import com.fasterxml.jackson.annotation.JsonInclude;

public class ResponseObject<Data> {
    private int status = 1;
    private int code = 0;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Data data;

    public ResponseObject(Data data) {
        this.data = data;
    }

    public ResponseObject(int status, int code, Data data) {
        this.data = data;
        this.status = status;
        this.code = code;
    }

    public ResponseObject(int status, int code) {
        this.status = status;
        this.code = code;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }


}
